<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>TP1-Algo: Référence de la classe TP1::Porte</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TP1-Algo
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Liste&#160;des&#160;classes</span></a></li>
      <li><a href="functions.html"><span>Membres&#160;de&#160;classe</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_t_p1_1_1_porte.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Fonctions membres publiques</a> &#124;
<a href="#pri-attribs">Attributs privés</a> &#124;
<a href="class_t_p1_1_1_porte-members.html">Liste de tous les membres</a>  </div>
  <div class="headertitle">
<div class="title">Référence de la classe TP1::Porte</div>  </div>
</div><!--header-->
<div class="contents">

<p>classe représentant une porte colorée dans un labyrinthe.  
 <a href="class_t_p1_1_1_porte.html#details">Plus de détails...</a></p>

<p><code>#include &lt;<a class="el" href="_porte_8h_source.html">Porte.h</a>&gt;</code></p>
<div class="dynheader">
Graphe de collaboration de TP1::Porte:</div>
<div class="dyncontent">
<div class="center"><img src="class_t_p1_1_1_porte__coll__graph.png" border="0" usemap="#_t_p1_1_1_porte_coll__map" alt="Collaboration graph"/></div>
<map name="_t_p1_1_1_porte_coll__map" id="_t_p1_1_1_porte_coll__map">
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">légende</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Fonctions membres publiques</h2></td></tr>
<tr class="memitem:a0bdab560d2ef222d1269fa11dd579d51"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_p1_1_1_porte.html#a0bdab560d2ef222d1269fa11dd579d51">Porte</a> (<a class="el" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a> c, <a class="el" href="class_t_p1_1_1_piece.html">Piece</a> *d)</td></tr>
<tr class="memdesc:a0bdab560d2ef222d1269fa11dd579d51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructeur, en argument la couleur de la porte ainsi que la pièce de destination.  <a href="#a0bdab560d2ef222d1269fa11dd579d51">Plus de détails...</a><br/></td></tr>
<tr class="separator:a0bdab560d2ef222d1269fa11dd579d51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa1c4811df774b15a10037b57872523c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_p1_1_1_porte.html#aaa1c4811df774b15a10037b57872523c">Porte</a> ()</td></tr>
<tr class="memdesc:aaa1c4811df774b15a10037b57872523c"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructeur par défaut  <a href="#aaa1c4811df774b15a10037b57872523c">Plus de détails...</a><br/></td></tr>
<tr class="separator:aaa1c4811df774b15a10037b57872523c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a13199023bb030e7939966f3d4fb6cc"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_p1_1_1_porte.html#a9a13199023bb030e7939966f3d4fb6cc">~Porte</a> ()</td></tr>
<tr class="memdesc:a9a13199023bb030e7939966f3d4fb6cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">destructeur de la classe  <a href="#a9a13199023bb030e7939966f3d4fb6cc">Plus de détails...</a><br/></td></tr>
<tr class="separator:a9a13199023bb030e7939966f3d4fb6cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c979f13c8890e0182cde0e136c2b8db"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_p1_1_1_porte.html#a6c979f13c8890e0182cde0e136c2b8db">Porte</a> (const <a class="el" href="class_t_p1_1_1_porte.html">Porte</a> &amp;)</td></tr>
<tr class="memdesc:a6c979f13c8890e0182cde0e136c2b8db"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructeur de copie, permet de créer un porte à partir d'une autre  <a href="#a6c979f13c8890e0182cde0e136c2b8db">Plus de détails...</a><br/></td></tr>
<tr class="separator:a6c979f13c8890e0182cde0e136c2b8db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ef2f573ad16ce321fdcc0fd5542884c"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_t_p1_1_1_porte.html">Porte</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_p1_1_1_porte.html#a2ef2f573ad16ce321fdcc0fd5542884c">operator=</a> (const <a class="el" href="class_t_p1_1_1_porte.html">Porte</a> &amp;source)</td></tr>
<tr class="memdesc:a2ef2f573ad16ce321fdcc0fd5542884c"><td class="mdescLeft">&#160;</td><td class="mdescRight">surcharge de l'opérateur d'égalité, permet d'assigner les données membre d'une porte à l'objet courant  <a href="#a2ef2f573ad16ce321fdcc0fd5542884c">Plus de détails...</a><br/></td></tr>
<tr class="separator:a2ef2f573ad16ce321fdcc0fd5542884c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4ee7c63216e6e72d0a6364523ae70d5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_p1_1_1_porte.html#ae4ee7c63216e6e72d0a6364523ae70d5">getCouleur</a> () const </td></tr>
<tr class="memdesc:ae4ee7c63216e6e72d0a6364523ae70d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">permet de récupérer la couleur de la porte  <a href="#ae4ee7c63216e6e72d0a6364523ae70d5">Plus de détails...</a><br/></td></tr>
<tr class="separator:ae4ee7c63216e6e72d0a6364523ae70d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89b049715752847eb6f9a0365531c8db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_p1_1_1_porte.html#a89b049715752847eb6f9a0365531c8db">getDestination</a> () const </td></tr>
<tr class="memdesc:a89b049715752847eb6f9a0365531c8db"><td class="mdescLeft">&#160;</td><td class="mdescRight">permet de récupérer la pièce vers laquel la porte mène  <a href="#a89b049715752847eb6f9a0365531c8db">Plus de détails...</a><br/></td></tr>
<tr class="separator:a89b049715752847eb6f9a0365531c8db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2e21c1b8874c58b8388f4167d70a5e0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_p1_1_1_porte.html#ab2e21c1b8874c58b8388f4167d70a5e0">operator==</a> (const <a class="el" href="class_t_p1_1_1_porte.html">Porte</a> &amp;p)</td></tr>
<tr class="memdesc:ab2e21c1b8874c58b8388f4167d70a5e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">surcharge de l'opérateur.  <a href="#ab2e21c1b8874c58b8388f4167d70a5e0">Plus de détails...</a><br/></td></tr>
<tr class="separator:ab2e21c1b8874c58b8388f4167d70a5e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Attributs privés</h2></td></tr>
<tr class="memitem:a1907533e4de27e978b37f8db635e9159"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">color</a></td></tr>
<tr class="separator:a1907533e4de27e978b37f8db635e9159"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbcaef670fe7cf89c8af9e1347df4e23"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">destination</a></td></tr>
<tr class="separator:afbcaef670fe7cf89c8af9e1347df4e23"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Description détaillée</h2>
<div class="textblock"><p>classe représentant une porte colorée dans un labyrinthe. </p>

<p>Définition à la ligne <a class="el" href="_porte_8h_source.html#l00036">36</a> du fichier <a class="el" href="_porte_8h_source.html">Porte.h</a>.</p>
</div><h2 class="groupheader">Documentation des constructeurs et destructeur</h2>
<a class="anchor" id="a0bdab560d2ef222d1269fa11dd579d51"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TP1::Porte::Porte </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a>&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a> *&#160;</td>
          <td class="paramname"><em>d</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructeur, en argument la couleur de la porte ainsi que la pièce de destination. </p>
<dl class="section pre"><dt>Précondition</dt><dd>le pointeur fournis en argument est valide </dd></dl>
<dl class="section post"><dt>Postcondition</dt><dd>la porte mènera vers la bonne pièce</dd></dl>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>couleur de la porte </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">d</td><td>pièce destinatrice </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_porte_8cpp_source.html#l00020">20</a> du fichier <a class="el" href="_porte_8cpp_source.html">Porte.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    :<a class="code" href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">color</a>(c), <a class="code" href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">destination</a>(d)</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    {}</div>
<div class="ttc" id="class_t_p1_1_1_porte_html_a1907533e4de27e978b37f8db635e9159"><div class="ttname"><a href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">TP1::Porte::color</a></div><div class="ttdeci">Couleur color</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00094">Porte.h:94</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_afbcaef670fe7cf89c8af9e1347df4e23"><div class="ttname"><a href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">TP1::Porte::destination</a></div><div class="ttdeci">Piece * destination</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00096">Porte.h:96</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="aaa1c4811df774b15a10037b57872523c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TP1::Porte::Porte </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>constructeur par défaut </p>

<p>Définition à la ligne <a class="el" href="_porte_8cpp_source.html#l00027">27</a> du fichier <a class="el" href="_porte_8cpp_source.html">Porte.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    :<a class="code" href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">color</a>(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eae0bf5933ca3585058577def6ab4ceec7">Aucun</a>), <a class="code" href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">destination</a>(0)</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    {}</div>
<div class="ttc" id="class_t_p1_1_1_porte_html_a1907533e4de27e978b37f8db635e9159"><div class="ttname"><a href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">TP1::Porte::color</a></div><div class="ttdeci">Couleur color</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00094">Porte.h:94</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_afbcaef670fe7cf89c8af9e1347df4e23"><div class="ttname"><a href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">TP1::Porte::destination</a></div><div class="ttdeci">Piece * destination</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00096">Porte.h:96</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690eae0bf5933ca3585058577def6ab4ceec7"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eae0bf5933ca3585058577def6ab4ceec7">TP1::Aucun</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a9a13199023bb030e7939966f3d4fb6cc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TP1::Porte::~Porte </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>destructeur de la classe </p>

<p>Définition à la ligne <a class="el" href="_porte_8cpp_source.html#l00034">34</a> du fichier <a class="el" href="_porte_8cpp_source.html">Porte.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    }</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a6c979f13c8890e0182cde0e136c2b8db"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TP1::Porte::Porte </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_t_p1_1_1_porte.html">Porte</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>constructeur de copie, permet de créer un porte à partir d'une autre </p>
<dl class="section post"><dt>Postcondition</dt><dd>la porte pointera vers la même pièce que celle passée en argument</dd></dl>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p</td><td><a class="el" href="class_t_p1_1_1_porte.html" title="classe représentant une porte colorée dans un labyrinthe. ">Porte</a> à partir de laquel on va construire une nouvelle porte </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_porte_8cpp_source.html#l00044">44</a> du fichier <a class="el" href="_porte_8cpp_source.html">Porte.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    :<a class="code" href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">color</a>(p.color), <a class="code" href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">destination</a>(p.destination)</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    {}</div>
<div class="ttc" id="class_t_p1_1_1_porte_html_a1907533e4de27e978b37f8db635e9159"><div class="ttname"><a href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">TP1::Porte::color</a></div><div class="ttdeci">Couleur color</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00094">Porte.h:94</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_afbcaef670fe7cf89c8af9e1347df4e23"><div class="ttname"><a href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">TP1::Porte::destination</a></div><div class="ttdeci">Piece * destination</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00096">Porte.h:96</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Documentation des fonctions membres</h2>
<a class="anchor" id="ae4ee7c63216e6e72d0a6364523ae70d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a> TP1::Porte::getCouleur </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>permet de récupérer la couleur de la porte </p>
<dl class="section post"><dt>Postcondition</dt><dd>renvoie la bonne couleur</dd></dl>
<dl class="section return"><dt>Renvoie</dt><dd>la couleur de l'objet courant </dd></dl>

<p>Définition à la ligne <a class="el" href="_porte_8cpp_source.html#l00070">70</a> du fichier <a class="el" href="_porte_8cpp_source.html">Porte.cpp</a>.</p>

<p>Références <a class="el" href="_porte_8h_source.html#l00094">color</a>.</p>

<p>Référencé par <a class="el" href="_labyrinthe_8cpp_source.html#l00199">TP1::Labyrinthe::_trouvePiecesAccessible()</a>, <a class="el" href="_liste_portes_8cpp_source.html#l00075">TP1::ListePortes::afficherPortes()</a>, et <a class="el" href="_labyrinthe_8cpp_source.html#l00383">TP1::Labyrinthe::solutionner()</a>.</p>
<div class="fragment"><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    {</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">color</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    }</div>
<div class="ttc" id="class_t_p1_1_1_porte_html_a1907533e4de27e978b37f8db635e9159"><div class="ttname"><a href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">TP1::Porte::color</a></div><div class="ttdeci">Couleur color</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00094">Porte.h:94</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a89b049715752847eb6f9a0365531c8db"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a> &amp; TP1::Porte::getDestination </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>permet de récupérer la pièce vers laquel la porte mène </p>
<dl class="section post"><dt>Postcondition</dt><dd>renvoie une référence valide vers la pièce où mène cette porte</dd></dl>
<dl class="section return"><dt>Renvoie</dt><dd>la destination de l'objet courant </dd></dl>

<p>Définition à la ligne <a class="el" href="_porte_8cpp_source.html#l00080">80</a> du fichier <a class="el" href="_porte_8cpp_source.html">Porte.cpp</a>.</p>

<p>Références <a class="el" href="_porte_8h_source.html#l00096">destination</a>.</p>

<p>Référencé par <a class="el" href="_labyrinthe_8cpp_source.html#l00199">TP1::Labyrinthe::_trouvePiecesAccessible()</a>, et <a class="el" href="_labyrinthe_8cpp_source.html#l00383">TP1::Labyrinthe::solutionner()</a>.</p>
<div class="fragment"><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordflow">return</span> *<a class="code" href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">destination</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div>
<div class="ttc" id="class_t_p1_1_1_porte_html_afbcaef670fe7cf89c8af9e1347df4e23"><div class="ttname"><a href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">TP1::Porte::destination</a></div><div class="ttdeci">Piece * destination</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00096">Porte.h:96</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a2ef2f573ad16ce321fdcc0fd5542884c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_t_p1_1_1_porte.html">Porte</a> &amp; TP1::Porte::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_t_p1_1_1_porte.html">Porte</a> &amp;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>surcharge de l'opérateur d'égalité, permet d'assigner les données membre d'une porte à l'objet courant </p>
<dl class="section post"><dt>Postcondition</dt><dd>la porte pointera vers la même pièce que celle passée en argument</dd></dl>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">source</td><td><a class="el" href="class_t_p1_1_1_porte.html" title="classe représentant une porte colorée dans un labyrinthe. ">Porte</a> qu'on va copier dans l'objet courant</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie</dt><dd>référence vers la porte courrante </dd></dl>

<p>Définition à la ligne <a class="el" href="_porte_8cpp_source.html#l00055">55</a> du fichier <a class="el" href="_porte_8cpp_source.html">Porte.cpp</a>.</p>

<p>Références <a class="el" href="_porte_8h_source.html#l00094">color</a>, et <a class="el" href="_porte_8h_source.html#l00096">destination</a>.</p>
<div class="fragment"><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keywordflow">if</span>(&amp;source != <span class="keyword">this</span>)</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        {</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            <a class="code" href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">color</a> = source.color;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            <a class="code" href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">destination</a> = source.destination;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        }</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    }</div>
<div class="ttc" id="class_t_p1_1_1_porte_html_a1907533e4de27e978b37f8db635e9159"><div class="ttname"><a href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">TP1::Porte::color</a></div><div class="ttdeci">Couleur color</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00094">Porte.h:94</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_afbcaef670fe7cf89c8af9e1347df4e23"><div class="ttname"><a href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">TP1::Porte::destination</a></div><div class="ttdeci">Piece * destination</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00096">Porte.h:96</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ab2e21c1b8874c58b8388f4167d70a5e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TP1::Porte::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_t_p1_1_1_porte.html">Porte</a> &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>surcharge de l'opérateur. </p>
<p>Décide si deux portes sont égales. Critères: couleur de la porte &amp; destination</p>
<dl class="params"><dt>Paramètres</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p,porte</td><td>que l'on va comparer avec la porte courante</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie</dt><dd>true si les portes sont identique, false sinon </dd></dl>

<p>Définition à la ligne <a class="el" href="_porte_8cpp_source.html#l00092">92</a> du fichier <a class="el" href="_porte_8cpp_source.html">Porte.cpp</a>.</p>

<p>Références <a class="el" href="_porte_8h_source.html#l00094">color</a>, et <a class="el" href="_porte_8h_source.html#l00096">destination</a>.</p>
<div class="fragment"><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keywordflow">if</span>(<a class="code" href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">color</a>==p.color &amp;&amp; <a class="code" href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">destination</a> == p.destination)</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        {</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        }</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        {</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    }</div>
<div class="ttc" id="class_t_p1_1_1_porte_html_a1907533e4de27e978b37f8db635e9159"><div class="ttname"><a href="class_t_p1_1_1_porte.html#a1907533e4de27e978b37f8db635e9159">TP1::Porte::color</a></div><div class="ttdeci">Couleur color</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00094">Porte.h:94</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html_afbcaef670fe7cf89c8af9e1347df4e23"><div class="ttname"><a href="class_t_p1_1_1_porte.html#afbcaef670fe7cf89c8af9e1347df4e23">TP1::Porte::destination</a></div><div class="ttdeci">Piece * destination</div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00096">Porte.h:96</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Documentation des données membres</h2>
<a class="anchor" id="a1907533e4de27e978b37f8db635e9159"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690e">Couleur</a> TP1::Porte::color</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Couleur de la porte. Cette couleur spécifie en même temps quel est le joueur qui a le droit de franchir cette porte. </p>

<p>Définition à la ligne <a class="el" href="_porte_8h_source.html#l00094">94</a> du fichier <a class="el" href="_porte_8h_source.html">Porte.h</a>.</p>

<p>Référencé par <a class="el" href="_porte_8cpp_source.html#l00070">getCouleur()</a>, <a class="el" href="_porte_8cpp_source.html#l00055">operator=()</a>, et <a class="el" href="_porte_8cpp_source.html#l00092">operator==()</a>.</p>

</div>
</div>
<a class="anchor" id="afbcaef670fe7cf89c8af9e1347df4e23"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a>* TP1::Porte::destination</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Vers où la porte mène. </p>

<p>Définition à la ligne <a class="el" href="_porte_8h_source.html#l00096">96</a> du fichier <a class="el" href="_porte_8h_source.html">Porte.h</a>.</p>

<p>Référencé par <a class="el" href="_porte_8cpp_source.html#l00080">getDestination()</a>, <a class="el" href="_porte_8cpp_source.html#l00055">operator=()</a>, et <a class="el" href="_porte_8cpp_source.html#l00092">operator==()</a>.</p>

</div>
</div>
<hr/>La documentation de cette classe a été générée à partir des fichiers suivants :<ul>
<li><a class="el" href="_porte_8h_source.html">Porte.h</a></li>
<li><a class="el" href="_porte_8cpp_source.html">Porte.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_t_p1.html">TP1</a></li><li class="navelem"><a class="el" href="class_t_p1_1_1_porte.html">Porte</a></li>
    <li class="footer">Généré le Dimanche 8 Juin 2014 19:37:06 pour TP1-Algo par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
